import { Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { TypeOrmCrudService } from '@nestjsx/crud-typeorm';
import { Villager } from 'libs/db/entity/villager.entity';
import softDelete from '../_decorator/soft-delete.decorator';

@Injectable()
@softDelete()
export class VillagerService extends TypeOrmCrudService<Villager> {
  constructor(@InjectRepository(Villager) repo) {
    super(repo);
  }
}